package enhance.plus.util;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author liubo
 * @created 2020-07-17 9:06
 */
public class Page<T> extends com.baomidou.mybatisplus.extension.plugins.pagination.Page<T> {

    private static final long serialVersionUID = 8545996863226528798L;

    @ApiModelProperty(value = "数据集" , required = false , example = "[]")
    private List<T> records;
    @ApiModelProperty(value = "总条数" , required = false , example = "0")
    private long total;
    @ApiModelProperty(value = "每一页条数" , required = false , example = "20")
    private long size;
    @ApiModelProperty(value = "当前第几页,从0开始" , required = false , example = "0")
    private long current;

    public Page(long current, long size) {
        super(current, size, 0L);
    }

}

